Set isrecursive to false when listall=true by default for users#6111
Set isrecursive to false when listall=true by default for users#6111davidjumani wants to merge 3 commits into
Conversation
|
@blueorangutan package |
|
@nvazquez a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2870 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Trillian test result (tid-3599) |
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
@blueorangutan package |
|
@davidjumani a Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
|
Packaging result: ✔️ el7 ✔️ el8 ✔️ debian ✔️ suse15. SL-JID 2885 |
|
@blueorangutan test |
|
@nvazquez a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
| return recursive == null ? true : recursive; | ||
| Account caller = CallContext.current().getCallingAccount(); | ||
| if (caller.getType() != Account.Type.NORMAL) { | ||
| return recursive == null ? true : recursive; |
There was a problem hiding this comment.
Could be simplified to
| return recursive == null ? true : recursive; | |
| return recursive == null || recursive; |
There was a problem hiding this comment.
more concise, less readable /m no me gusta
| return recursive == null ? true : recursive; | ||
| } | ||
| } | ||
| return recursive == null ? false : recursive; |
There was a problem hiding this comment.
Could probably be simplified to:
| return recursive == null ? false : recursive; | |
| return recursive != null && recursive; |
There was a problem hiding this comment.
hm, that is not more expressive, i'd say.
Pearl1594
left a comment
There was a problem hiding this comment.
LGTM - verified fix - Prior fix few APIs failed with the following execption:
Only ROOT admins and Domain admins can list service offerings with isrecursive=true
|
Trillian test result (tid-3613)
|
|
@blueorangutan test |
|
@davidjumani a Trillian-Jenkins test job (centos7 mgmt + kvm-centos7) has been kicked to run smoke tests |
|
Closing in favour of #6125 |
Description
Sets isrecursive=false for users when listall=true by default to prevent any permission issues when listing resources as a user
Types of changes
Screenshots (if appropriate):
How Has This Been Tested?